home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / rru_reso.z / rru_reso / slib / X11 / app-defaults.tan / .twmrc next >
Text File  |  1994-09-26  |  12KB  |  463 lines

  1. #**********************************************************************
  2. #
  3. #    .twmrc-meo - Miles' twm 5 startup file
  4. #
  5. #    Copyright 1993, Pencom Software, Austin, TX.
  6. #
  7. #    Tab stops should be 3; try :set ts=3 in vi if things don't line up
  8. #
  9. #    Every settable resource in the version of twm we ship is represented
  10. #    herein.  Many are currently deactivated via a '#' at the beginning of
  11. #    the line - the standard comment symbol.
  12. #
  13. #    Most of twm's variable settings are listed at the end of this
  14. #    file - these are the most commonly used.
  15. #
  16. #    LOOK AND FEEL VARIABLES MOST PEOPLE CARE ABOUT
  17. #
  18. BorderWidth                5
  19. TitleFont                "-*-courier-medium-r-normal--*-140-*-*-*-*-*-*"
  20. MenuFont                    "-*-courier-bold-o-normal--*-180-*-*-*-*-*-*"
  21. IconFont                    "9x15"
  22. ResizeFont                "-*-courier-bold-r-normal--*-180-*-*-*-*-*-*"
  23. #DontMoveOff
  24. #NoRaiseOnDeiconify
  25. NoRaiseOnMove
  26. #NoRaiseOnResize
  27. #NoTitleFocus
  28. RandomPlacement        # no user intervention required for new windows
  29. WarpCursor
  30. #Zoom
  31. #
  32. #    COLORS
  33. #
  34. #    This version make heavy use of color to give visual
  35. #    cues, make things easy to find, etc.  The twmrc-mwm
  36. #    file is much more sedate for those whose eyes and/or
  37. #    sensibilitries can't deal with this color scheme.
  38. #
  39. #    The BorderTile FG & BG are the same - make them
  40. #    different for tiled borders.
  41. #
  42. Color
  43. {
  44.     BorderColor                    "Magenta"    # optional window list
  45.     BorderTileBackground        "Yellow"        # optional window list
  46.     BorderTileForeground        "Yellow"        # optional window list
  47. #    DefaultBackground            "MidnightBlue"
  48. #    DefaultForeground            "PapayaWhip"
  49.     IconBackground                "Blue"        # optional window list
  50.     IconBorderColor            "Orange"        # optional window list
  51.     IconForeground                "Green"        # optional window list
  52.     IconManagerBackground    "SandyBrown"# optional window list
  53.     IconManagerForeground    "Red"            # optional window list
  54.     IconManagerHighlight        "Red"            # optional window list
  55.     MenuBackground                "MediumSpringGreen"
  56.     MenuForeground                "Magenta"
  57.     MenuShadowColor            "Black"
  58.     MenuTitleBackground        "Blue"
  59.     MenuTitleForeground        "Red"
  60.     TitleBackground            "Blue"        # optional window list
  61.     TitleForeground            "White"        # optional window list
  62. }
  63.  
  64. Monochrome
  65. {
  66.     BorderColor                    "White"
  67.     BorderTileBackground        "White"
  68.     BorderTileForeground        "Black"
  69. #    DefaultBackground            "Black"
  70. #    DefaultForeground            "White"
  71.     IconBackground                "Black"        # optional window list
  72.     IconBorderColor            "Black"        # optional window list
  73.     IconForeground                "White"        # optional window list
  74.     IconManagerBackground    "White"        # optional window list
  75.     IconManagerForeground    "Black"        # optional window list
  76.     IconManagerHighlight        "Black"        # optional window list
  77.     MenuBackground                "White"
  78.     MenuForeground                "Black"
  79.     MenuShadowColor            "Black"
  80.     MenuTitleBackground        "Black"
  81.     MenuTitleForeground        "White"
  82.     TitleBackground            "Black"        # optional window list
  83.     TitleForeground            "White"        # optional window list
  84. }
  85.  
  86. #    Button bindings evolved from SunOS 3.x and later SunView bindings.
  87. #    They are NOTHING like mwm standard bindings.  They provide mappings
  88. #    for nearly everything.
  89.  
  90. #
  91. # Window Manager-Level Straight MOUSE BUTTON MAPPINGS
  92. #
  93. #    I pass unmodified Button1 straight through, always, always, always
  94. #  (except on title bars, never, never, never)
  95. #
  96. #Button1        f.nop
  97. Button2        f.menu "Hosts Menu"
  98. Button3        f.menu "Screen Mgmt Menu"
  99. #    a 5 key mouse?  Good luck!
  100. Button4        f.nop
  101. Button5        f.nop
  102. #
  103. # Keyboard Bindings (Root & iconManager only)
  104. #
  105. # Modifiers        Abbreviation    |    Context    Abbreviation
  106. # ---------        ------------    |    -------    ------------
  107. #    control                c            |    frame                f
  108. #    lock                    l            |    icon                i
  109. #    meta                    m            |    iconmgr            m
  110. #    shift                    s            |    root                r
  111. #    mod1                    m1            |    title                t
  112. #    mod2                    m2            |    window            w
  113. #    mod3                    m3            |
  114. #    mod4                    m4            |
  115. #    mod5                    m5            |
  116. #
  117. #"Key"    =    Modifiers    :    Context    :    Function
  118. #-------------------------------------------------------------------
  119. "F1"        =                    :    root        :    f.menu "Hosts Menu"
  120. "F2"        =                    :    root        :    f.menu "Screen Mgmt Menu"
  121. "F3"        =                    :    root        :    f.menu "Screen Mgmt Menu"
  122. "F4"        =                    :    root        :    f.showiconmgr
  123. "F5"        =                    :    r|m        :    f.hideiconmgr
  124. "F6"        =                    :    root        :    f.beep
  125. "Left"    =                    :    root        :    f.circledown
  126. "Right"    =                    :    root        :    f.circleup
  127. "Up"        =                    :    root        :    f.showiconmgr
  128. "Down"    =                    :    r|m        :    f.hideiconmgr
  129. "Up"        =    m|s|c            :    root        :    f.menu "Hosts Menu"
  130. "Down"    =    m|s|c            :    root        :    f.menu "Screen Mgmt Menu"
  131.  
  132. #  BUTTON-KEY MAPPING
  133. #
  134. #    shift & control are under-utilized simply because they are used
  135. #    so many other places in X.
  136. #
  137. # BUTTON =        KEY/S    :    CONTEXT    :    FUNCTION  
  138. #
  139. #    In a Window
  140. #
  141. #Button1 =        s        :    window    :    f.iconify
  142. Button1 =         m        :    window    :    f.destroy
  143. Button2 =        s        :    window    :    f.move
  144. Button3 =        s        :    window    :    f.resize
  145. Button3 =        m        :    window    :    f.menu "Screen Mgmt Menu"
  146. #
  147. #    On an Icon
  148. #
  149. Button1 =        s        :    icon        :    f.iconify
  150. Button1 =         m        :    icon        :    f.destroy
  151. Button2 =        s        :    icon        :    f.move
  152. Button3 =        s        :    icon        :    f.resize
  153. Button3 =        m        :    icon        :    f.menu "Screen Mgmt Menu"
  154. #
  155. #    On a Title Bar
  156. #
  157. Button1 =                :    title        :    f.raise
  158. Button1 =        s        :    title        :    f.iconify
  159. Button2 =                 :    title        :    f.move
  160. Button2 =        s        :    title        :    f.move
  161. Button3 =                :    title        :    f.lower
  162. Button3 =        s        :    title        :    f.resize
  163. Button3 =        m        :    title        :    f.menu "Screen Mgmt Menu"
  164. #
  165. #    On a Frame
  166. #
  167. Button1 =                :    frame        :    f.raise
  168. Button1 =        s        :    frame        :    f.iconify
  169. Button2 =                 :    frame        :    f.move
  170. Button2 =        s        :    frame        :    f.move
  171. Button3 =                :    frame        :    f.lower
  172. Button3 =        s        :    frame        :    f.resize
  173. Button3 =        m        :    frame        :    f.menu "Screen Mgmt Menu"
  174.  
  175. #    works with pre-R4 twm only
  176. #
  177. #TitleButton1    t.raise 
  178. #TitleButton2    t.move 
  179. #TitleButton3    t.lower
  180. #TitleButton4    t.nop
  181. #TitleButton5    t.nop
  182.  
  183. #LeftTitleButton "mushroom.xbm" = f.destroy
  184. #RightTitleButton "circle_down.xbm" = f.circledown
  185. #RightTitleButton "circle_up.xbm" = f.circleup
  186. #RightTitleButton "lower.xbm" = f.lower
  187. #RightTitleButton "raise.xbm" = f.raise
  188. #RightTitleButton "focus.xbm" = f.focus
  189. #RightTitleButton "unfocus.xbm" = f.unfocus
  190.  
  191. #
  192. #    MENUS
  193. #
  194. #    The method of invoking xterms occasionally has to be modified to work
  195. #    well on different systems, due to broken xterms or remote shells.
  196.  
  197. Menu "Screen Mgmt Menu"
  198. {
  199.     "Screen Mgmt"            ("Yellow":"Blue")    f.title
  200.     "Other Systems"        f.menu "Hosts Menu"
  201.     "Terminal Windows"    f.menu "Terminal Menu"
  202.     "Screen Maint."        f.menu "Maintenance Menu"
  203.     "Special Ops"            f.menu "Special Ops Menu"
  204.     "Preferences"            f.menu "Preferences Menu"
  205.     "Misc. Stuff"            ("Orange":"Cyan")    f.title
  206.     "Calculator"            !"xcalc &"
  207.     "clipboard"                !"xclipboard -geometry 675x420+275+275 &"
  208.     "Mail"                    !"xterm -bg black -fg green -bd violet -cr orange -ms orange -name Mail -geometry 80x40+200-0 -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -e /usr/ucb/Mail &"
  209.     "Update twm"            f.twmrc
  210.     "Exit twm"                ("Red":"White")    f.quit
  211. }
  212.  
  213.  
  214.  
  215. Menu "Hosts Menu"
  216. {
  217.     "Other Systems"    ("red":"blue")    f.title
  218.     "System 1"    !"xterm -ut -sl 300 -ms Red -cr Red -bg LightSkyBlue -fg Black -geom 80x24+150+30 -T system1 -e telnet system1 &"
  219.     "System 2"    !"rsh system2 xterm -display `hostname`:0 -ut -cr OrangeRed -sl 300 -ms OrangeRed -bg BurlyWood1 -fg Yellow -sb -name system2 &"
  220. }
  221.  
  222.  
  223. Menu "Terminal Menu"
  224. {
  225.     "Various Terminals"    ("Tan":"White")    f.title
  226.     "Terminal Window"        !"xterm -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &"
  227.     "Nicer Terminal"        !"xterm -fn '-*-courier-bold-r-normal--*-180-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &"
  228.     "Small Terminal"        !"xterm -fn '-*-courier-medium-r-normal--*-80-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x24 -ut &"
  229.     "Tall Terminal"        ("Sienna":"Yellow")    !"xterm -fn '-*-courier-bold-r-normal--*-120-*-*-*-*-*-*' -bg white -fg black -bd green -cr red -sl 300 -ms red -name Local -geometry 80x66 -ut &"
  230. }
  231.  
  232.  
  233. Menu "Maintenance Menu"
  234. {
  235.     "Window & Screen"        ("Black":"Red")    f.title
  236.     "Move"                    f.move
  237.     "Resize"                    f.resize
  238.     "Expose"                    f.raise
  239.     "Hide"                    f.lower
  240.     "Redraw Window"        f.winrefresh
  241.     "Refresh Screen"        f.refresh 
  242.     "Grab Keyboard"        f.focus
  243.     "Share Keyboard"        f.unfocus
  244.     "Icon <-> Window"        ("White":"Red")    f.iconify
  245. }
  246.  
  247.  
  248.  
  249. Menu "Special Ops Menu"
  250. {
  251.     "Special Ops"            ("black":"red")    f.title
  252.     "Kill window"            f.destroy
  253.     "Exit twm"                f.quit
  254.     "Update twm"            f.twmrc
  255.     "twm Version"            ("white":"blue")    f.version
  256. }
  257.  
  258.  
  259. Menu "Preferences Menu"
  260. {
  261.     "Preferences"        ("black":"red")    f.title
  262.     "Bell"                f.menu "Bell"
  263.     "Key Click"            f.menu "Key Click"
  264.     "Mouse"                f.menu "Mouser"
  265.     "Screen Saver"        ("white":"yellow")    f.menu "Screen Saver"
  266. }
  267.  
  268.  
  269. Menu "Bell"
  270. {
  271.     "Loud"                ("black":"red")    !"xset b 7 1000 100&"
  272.     "Normal"                !"xset b 3 1000 50&"
  273.     "Off"                    ("white":"red")    !"xset b off&"
  274.  
  275.  
  276. Menu "Key Click"
  277. {
  278.     "Loud"                ("black":"OrangeRed")    !"xset c 100&"
  279.     "Soft"                !"xset c on&"
  280.     "Off"                    ("white":"OrangeRed")    !"xset c off&"
  281. }
  282.  
  283.  
  284. Menu "Mouser"
  285. {
  286.     "Fast"                ("black":"Orange")    !"xset m 4 10&"
  287.     "Normal"                !"xset m 2 5&"
  288.     "Slow"                ("white":"orange")    !"xset m 1 1&"
  289.  
  290.  
  291. Menu "Screen Saver"
  292. {
  293.     "Default"            ("black":"yellow")    !"xset s on"
  294.     "Off"                    !"xset s off"
  295.     "Blank"                !"xset s blank; xset s 600 30"
  296.     "Pattern"            ("white":"yellow")    !"xset s noblank; xset s 600 30"
  297. }
  298.  
  299. #    PRIMARY ICON OPTIONS I CARE ABOUT
  300.  
  301. ForceIcons        # icons designated in Icons variable override client requests
  302. IconDirectory    "/usr/include/X11/bitmaps"
  303. Icons                # obtained from IconDirectory (above)
  304. {
  305.     "elm"                "rd_elm.xbm"
  306.     "xterm"            "terminal"
  307.     "Logout"            "mushroom.xbm"
  308.     "Riscman"        "Riscman"
  309.     "Main1"            "terminal"
  310.     "Main2"            "terminal"
  311.     "Tools1"            "terminal"
  312.     "Tools2"            "terminal"
  313.     "Games1"            "terminal"
  314.     "Games2"            "terminal"
  315. }
  316. UnknownIcon    "star"    # whenever icon name is unspecified or unfound
  317.  
  318. NoHighlight                # don't highlight/unhighlight as pointer crosses it
  319. {
  320.     "xclock"
  321.     "builderProduct"
  322. }
  323.  
  324. NoTitle
  325. {
  326.     "xbiff"
  327.     "xclock"
  328.     "xlogout"
  329.     "xpostit"
  330. }
  331.  
  332. #    ALL OTHER TWM OPTIONS
  333. #
  334. #    NOTE: some old features may have new options not shown
  335. #
  336. AutoRaise                                        # Raise these when they are mapped.
  337. {
  338.     "dlgPopup"
  339.     "popupShell"
  340. }
  341. #    AutoRelativeResize                        # resize relative to ptr position
  342. #    ButtonIndent                1
  343. #    ClientBorderWidth                            # client overrides twm's BorderWidth
  344. #    ConstrainedMoveTime        400
  345. DecorateTransients
  346. #    FramePadding                2
  347. #    IconBorderWidth            2
  348. #    IconifyManagerFont        "9x15"
  349. #    IconManagerGeometry    "=400x250" 1
  350. IconRegion                "=1000x100+0-0" South West 10 10
  351. IconRegion                "=300x100+0+0" South West 10 10
  352. InterpolateMenuColors
  353. #    MaxWindowSize                "2000x2000"    # default is 30000x30000
  354. #    MoveDelta                    0    # number of pixels ptr moves before f.move works
  355. NoBackingStore
  356. #    NoCaseSensitive                # ignore case in icon manager sort
  357. #    NoDefaults                        # don't supply default titlebuttons and bindings
  358. #    NoGrabServer                    # during menu popups & opaque moves
  359. #    NoIconManagers
  360. NoMenuShadows                        # menu shadows broken in co-Xist 3.x !
  361. #    NoRaiseOnWarp
  362. #NoSaveUnders
  363. #    NoStackMode                        # ignore client stacking order requests
  364. OpaqueMove                            # instead of outline move - nicer but slower
  365. RestartPreviousState
  366. #    ShowIconManager                # when twm started
  367. SortIconManager                    # sort entries alphabetically
  368. #    TitleButtonBorderWidth    1
  369. #    TitlePadding                8
  370. UsePPosition                    "non-zero"
  371. #    WarpUnmapped
  372. #    XorValue                        2
  373. DefaultFunction            f.beep
  374. WindowFunction                f.deiconify
  375. #    
  376. #
  377. Cursors
  378. {
  379.     Frame                "top_left_arrow"
  380.     Title                "top_left_arrow"
  381.     Icon                "top_left_arrow"
  382.     IconMgr            "top_left_arrow"
  383.     Move                "fleur"
  384.     Resize            "fleur"
  385.     Menu                "sb_left_arrow"
  386.     Button            "hand2"
  387.     Wait                "watch"
  388.     Select            "dot"
  389.     Destroy            "pirate"
  390. }
  391. #
  392. #    DontIconifyByUnmapping
  393. #    {
  394. #    }
  395. #
  396. #    DontSqueezeTitle
  397. #    { # these are optional
  398. #    }
  399. #
  400. #    IconifyByUnmapping
  401. #    { # these are optional
  402. #    }
  403. #
  404. #    IconManagerBackground    Grey
  405. #    { # these are optional
  406. #    }
  407. #
  408. #    IconManagerDontShow
  409. #    { # these are optional
  410. #    }
  411. #
  412. #    IconManagerForeground    Black
  413. #    { # these are optional
  414. #    }
  415. #
  416. #    IconManagerHighlight        Black
  417. #    { # these are optional
  418. #    }
  419. #
  420. #    IconManagers                # named clients/classes get separate icom managers
  421. #    {
  422. #    "XTerm"    "=80x24"        6
  423. #    "elm"        "=200x100"    3
  424. #    }
  425. #
  426. #    IconManagerShow            # list of windows that should appear in icon manager
  427. #    {
  428. #    }
  429. #
  430. #    MakeTitle                    # windows getting titlebars when NoTitle set
  431. #    {
  432. #    }
  433. #
  434. #    NoTitleHighlight
  435. #    { # these are optional
  436. #    }
  437. #
  438. #    Pixmaps
  439. #    {
  440. #    TitleHighlight        "gray1"
  441. #    }
  442. #
  443. #    SaveColor
  444. #    {
  445. #    }
  446. #
  447. #    SqueezeTitle
  448. #    { # these are optional
  449. #        "Main"    left    0    0
  450. #        "Tools"    left    0    0
  451. #        "Games"    left    0    0
  452. #    }
  453. #
  454. #    StartIconified
  455. #    { # these are optional
  456. #    }
  457. #
  458. #    WindowRing
  459. #    {
  460. #    }
  461.